
package com.pp.admin.common.server;

import com.pp.admin.common.server.entities.User;

public class CurrentThread {
	
	private static ThreadLocal<User>	currentUser	= new ThreadLocal<User>();
	
	public static void setCurrentUser( User user ) {

		currentUser.set( user );
	}
	
	public static User getCurrentUser() {

		return currentUser.get();
	}
	
}
